#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
using namespace std;
int main()
{
	vector<double> A = { 0.1, 0.3, 0.5 };
	vector<double> B = { 1.2, 2.4, 2.6 };
	vector<double> C = { 0, 0, 0 };
	vector<double> D;
	for (int i = 0; i < 3; i++)
	{
		C[i] = A[i] + B[i];
	}

	for (int i = 0; i < 3; i++)
	{
		D.push_back(A[i] + B[i]);
	}
	for (int i = 0; i < 3; i++)
	{
		cout << C[i] << " ";
	}
	cout << endl;
	for (int i = 0; i < 3; i++)
	{
		cout << D[i] << " ";
	}
	cout << endl;
	return 0;
}